package com.tianhe.perimeter.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tianhe.perimeter.generator.common.utils.PageUtils;
import com.tianhe.perimeter.generator.common.utils.Query;
import com.tianhe.perimeter.generator.dao.AlmPerimeterEventDao;
import com.tianhe.perimeter.generator.entity.AlmPerimeterEventEntity;
import com.tianhe.perimeter.generator.service.AlmPerimeterEventService;
import org.springframework.stereotype.Service;
import java.util.Map;


@Service("almPerimeterEventService")
public class AlmPerimeterEventServiceImpl extends ServiceImpl<AlmPerimeterEventDao, AlmPerimeterEventEntity> implements AlmPerimeterEventService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AlmPerimeterEventEntity> page = this.page(
                new Query<AlmPerimeterEventEntity>().getPage(params),
                new QueryWrapper<AlmPerimeterEventEntity>()
        );

        return new PageUtils(page);
    }

}